cmake_minimum_required(VERSION 3.21)

# 配置 vcpkg 工具链文件（位于项目内的 vcpkg 目录下）
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Vcpkg toolchain file")

# 项目信息
project(super_car_cfd LANGUAGES CXX)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# 设置 CMAKE_PREFIX_PATH
set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/vcpkg_installed/x64-windows/share" ${CMAKE_PREFIX_PATH})


# 查找依赖项
find_package(Eigen3 REQUIRED)
find_package(spdlog REQUIRED)
find_package(fmt REQUIRED)

# 添加 src 子目录
add_subdirectory(src)
